import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty, IsUUID, IsHexColor, Length } from 'class-validator';

/**
 * 创建标签DTO
 */
export class CreateTagDto {
  @ApiProperty({
    description: '标签名称',
    example: '紧急',
  })
  @IsString()
  @IsNotEmpty()
  @Length(1, 50)
  name: string;

  @ApiProperty({
    description: '标签颜色（十六进制）',
    example: '#FF0000',
  })
  @IsString()
  @IsHexColor()
  @IsNotEmpty()
  color: string;

  @ApiProperty({
    description: '工作区ID',
    example: '123e4567-e89b-12d3-a456-426614174000',
  })
  @IsUUID()
  @IsNotEmpty()
  workspaceId: string;
} 